import axios from 'axios'
const reqeusts = axios.create({
    baseURL: 'http://127.0.0.1:8000/',
    timeout: 3000,


});

reqeusts.interceptors.request.use(function(config) {
    // console.log("进入请求拦截器", config)
    return config;

}, function(error) {
    return Promise.reject(error)
});

reqeusts.interceptors.response.use(function(respons) {
    // console.log('进入响应拦截器')
    return respons

}, function(error) {
    return Promise.reject(error);
})

export default reqeusts